<template>
  <div>
    <h2>TsTitle</h2>
    count:{{ count }}
    <button @click="count++">count++</button>
    <button @click="updateCount(1)">updateCount(1)</button>
  </div>
</template>
<script setup>
import { inject } from 'vue';
import * as key from './key.js';


const { count, updateCount } = inject(key.count);
</script>